//
//  UIView+Extension.h
//  TSDJ
//
//  Created by 恒生 on 2022/3/13.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (Extension)
 
@property(nonatomic,assign)CGSize size;
@property (nonatomic, assign) CGPoint origin;
@property(nonatomic,assign)CGFloat width;
@property(nonatomic,assign)CGFloat height;
@property(nonatomic,assign)CGFloat x;
@property(nonatomic,assign)CGFloat y;
@property(nonatomic,assign)CGFloat centerX;
@property(nonatomic,assign)CGFloat centerY;

@property (nonatomic, assign) CGFloat top;
/**  底部  */
@property (nonatomic, assign) CGFloat bottom;
/**  左边  */
@property (nonatomic, assign) CGFloat left;
/**  右边  */
@property (nonatomic, assign) CGFloat right;
/*
 在分类中声明@property，只会生成方法的声明，不会生成方法的实现和带有_下划线的成员变量
 */
@end

NS_ASSUME_NONNULL_END
